<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<!--
 Header XSLT file
 Copyright MONKeLABS 2011

 File History

 Version		Date Modified		Author		Description of changes
 =====================================================================
 1.00			06/04/2011			Rob Davis	File Creation
 1.01			10/04/2011			Rob Davis	Added type tag
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:template match="/">
		<table cellpadding="0" cellspacing="0" style="text-align:center; width:100%">
            <tr>
            	<xsl:for-each select="menu/item">
                    <td>
                    	<xsl:choose>
                        	<xsl:when test="type = 'abs'">
                    			<!-- These are abserlute links -->
                        		<a href="{link}" target="_blank"><div><table></table><xsl:value-of select="title"/></div></a>
                    		</xsl:when>
							<xsl:otherwise>
                                <!-- These are realtive links -->
                                <xsl:choose>
                                    <xsl:when test="link = '[page]'">
                                        <a href="[url]{link}" class="headeraselected" style="color:#F60;"><div class="headerdivselected"><table></table><xsl:value-of select="title"/></div></a>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <a href="[url]{link}"><div><table></table><xsl:value-of select="title"/></div></a>
                                    </xsl:otherwise>
                                </xsl:choose>
                            </xsl:otherwise>
                        </xsl:choose>
                    </td>
            	</xsl:for-each>
            </tr>
        </table>
</xsl:template>
</xsl:stylesheet>